package sg.edu.nus.iss.vmcs.store;

/*
 * Copyright 2003 ISS.
 * The contents contained in this document may not be reproduced in any
 * form or by any means, without the written permission of ISS, other
 * than for the purpose for which it has been supplied.
 *
 */

/**
 *
 *
 * @version 3.0 5/07/2003
 * @author Olivo Miotto, Pang Ping Li
 */

public class DrinksBrand extends StoreObject {

	private int price;

	

	public DrinksBrand() {
	}

	public DrinksBrand(String name, int price) {
		this.price = price;
		this.name = name;
	}

	public void setPrice(int p) {
		price = p;
	}

	public int getPrice() {
		return (price);
	}

	public PriceSnapshot createSnapshot(){
		PriceSnapshot  ps = new PriceSnapshot(this.price);
		return ps;
	}
	
	public void setSnapshot(PriceSnapshot ps){
		price = ps.getPrice();
		
	}
	
	public class PriceSnapshot {
		private int price;

		public PriceSnapshot() {
		}

		public PriceSnapshot(int price) {
			this.price = price;
		}

		public void setPrice(int p) {
			price = p;
		}

		public int getPrice() {
			return (price);
		}
	}
}
